{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-5.3.0/css/bootstrap.css' %}">
    <script src="{% static 'plugins/bootstrap-5.3.0/js/bootstrap.js' %}"></script>
    <script src="{% static 'js/jquery-3.6.1.js' %}"></script>
</head>
<body>
    <div class="container">
        <h1 class="align">学生列表</h1>
        <a href="/orm/add/">添加学生</a>
        <table class="table table-striped table-hover">
            <tr >
                <th>编号</th>
                <th>姓名</th>
                <th>性别</th>
                <th>Python成绩</th>
                <th>地址</th>
                <th>操作</th>
            </tr>
            {% for stu in stus %}
                <tr>
                    <td>{{ stu.id }}</td>
                    <td>{{ stu.stu_name }}</td>
                    <td>{{ stu.gender }}</td>
                    <td>{{ stu.python_score }}</td>
                    <td>{{ stu.address }}</td>
                    <td>
                        <a href="/orm/{{ stu.id }}/update/">编辑</a>
                        <a href="/orm/{{ stu.id }}/del/">删除</a>
                    </td>
                </tr>
            {% endfor %}
        </table>
    </div>
</body>
</html>